﻿using MiniExcelLibs.Attributes;
using Prism.Mvvm;

namespace OP10.Models
{
    public class WarningModel : BindableBase
    {
        /// <summary>
        /// 编号
        /// </summary>
        private int _Number;
        public int Number
        {
            get { return _Number; }
            set { SetProperty(ref _Number, value); }
        }
        /// <summary>
        /// 地址
        /// </summary>
        private string _Addr;
        public string Addr
        {
            get { return _Addr; }
            set { SetProperty(ref _Addr, value); }
        }

        private string _WarningMessage;
        public string WarningMessage
        {
            get { return _WarningMessage; }
            set { SetProperty(ref _WarningMessage, value); }
        }
        private bool _IsAlarm;
        public bool IsAlarm
        {
            get { return _IsAlarm; }
            set { SetProperty(ref _IsAlarm, value); }
        }
        private string _Time;
        public string Time
        {
            get { return _Time; }
            set { SetProperty(ref _Time, value); }
        }
    }



    public class WarningExcelDto
    {
        [ExcelColumnName("编号")]
        public int Number { get; set; }


        [ExcelColumnName("地址")]
        public string Addr { get; set; }

        [ExcelColumnName("报警内容")]
        public string WarningMessage { get; set; }
    }
}
